package com.woniuxy.sale.entity.dto;


import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.woniuxy.sale.entity.SaleOrderItem;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 选货单总表;
 * </p>
 *
 * @author lio
 * @since 2023-09-07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//@Accessors(chain=true)
public class SaleOrderDTO implements Serializable {

    /**
     * 选货单总表id
     */
    @ExcelIgnore
    private Integer id;

    /**
     * 选货单单号
     */
    @Excel(name = "选货单单号", needMerge = true, width = 20,height = 8)
    private String sno;

    /**
     * 仓库
     */
    @Excel(name = "仓库编号", needMerge = true, width = 20,height = 8)
    private Integer depotId;

    /**
     * 制单人
     */
    @ExcelIgnore
    private String creator;

    /**
     * 客户
     */
    @Excel(name = "客户名称", needMerge = true, width = 20,height = 8)
    private String customer;

    /**
     * 制单时间
     */
    @Excel(name = "制单时间", needMerge = true, width = 20,height = 8)
    private String createTime;

    /**
     * 总价
     */
    @Excel(name = "总价", needMerge = true, width = 20,height = 8)
    private BigDecimal totalPrice;

    /**
     * 状态(-1审核不通过,0未提交,1待审核,2审核通过,3已付定金,4已打包,5已完成,6已删除)
     */
    @Excel(name = "状态", needMerge = true, width = 20,height = 8)
    private String state;

    @ExcelCollection(name = "产品信息")
    private List<SaleOrderItem> orderItems;
}
